package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;

import com.dstz.demo.core.dao.PDiachronicRecordDao;
import com.dstz.demo.core.manager.PDiachronicRecordManager;
import com.dstz.demo.core.model.PDiachronicRecord;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 历时保存记录 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2019-11-30 15:36:22
 */
@Service("pDiachronicRecordManager")
public class PDiachronicRecordManagerImpl extends BaseManager<String, PDiachronicRecord> implements PDiachronicRecordManager {
	@Resource
	PDiachronicRecordDao pDiachronicRecordDao;

	@Override
	public void insertPDiachronicRecord(PDiachronicRecord pDiachronicRecord) {
		pDiachronicRecordDao.create(pDiachronicRecord);
	}

	@Override
	public void deletePDiachronicRecord(String id) {
		pDiachronicRecordDao.remove(id);
	}

	@Override
	public List<PDiachronicRecord> seletePDiachronicRecordModel() {
		return pDiachronicRecordDao.query();
	}
}
